package org.example;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
//        HelloWorld helloWorld = new HelloWorld();
//        helloWorld.setName("whs");
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("Hello_World.xml");
        Hello_World helloWorld = (Hello_World) ctx.getBean("helloWorld");
        helloWorld.hello();
    }
}